﻿@{
    Layout = null;
}
<table class="table  table-striped" id="table">
    <thead>
        <tr>
            <td>名称</td>
            <td>帐号</td>
            <td>密码</td>
            <td>操作</td>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model)
            {

            <tr>
                <td style="max-width: 400px;">
                    @if (item.IsLeaf)
                    {
                        <a href="@item.Url" title="@item.DisplayName" target="_blank">@item.DisplayName</a>
                    }
                    else
                    {
                        @item.DisplayName
                    }
                </td>
                <td>@item.Account</td>
                <td>@item.Key</td>
                <td>
                    <a href="javasrcript:void(0)" onclick="EditRow('@item.Id')">编辑</a>
                    @if (item.IsLeaf)
                    {
                        <a href="@item.Url" target="_blank">打开</a>
                    }
                </td>
            </tr>
        }

    </tbody>
</table>
